<?php	
						$sql = mysql_query("select * from faq where faq_id=".$_REQUEST['faq_id']);       
						
						$row= mysql_fetch_array($sql);

						$sql1 = mysql_query("select * from answers where faq_id=".$_REQUEST['faq_id']);       
						
						$row1= mysql_fetch_array($sql1);

						?>
					<form name="edit_faq" id="edit_faq" method="post" action="edit_faq_process.php">
						<table border="0" width="100%" cellspacing="3" cellpadding="2" class="pro">      
							<tr><td colspan="2" class="create">EDIT FAQ</td></tr>
							<tr><td colspan="2" style="height:15px;"></td></tr>
							<tr>
								<td><span class="label">FAQ:</span></td>
								 <td><textarea rows="3" cols="25" name="faq" id="faq" class="validate[required,custom[noSpecialCaracters],length[0,20]]" ><?php echo $row['faq']; ?></textarea>
                                    </td>
								<td><input  type="hidden" id="faq_id" name="faq_id" value="<?php echo $row['faq_id']; ?>"></td>
							</tr>

							<tr><td colspan="2" class="create">EDIT ANSWER</td></tr>
							<tr><td colspan="2" style="height:15px;"></td></tr>
							<tr>
								<td><span class="label">Answer:</span></td>
								 <td><textarea rows="3" cols="25" name="answer" id="answer" class="validate[required,custom[noSpecialCaracters],length[0,20]]" ><?php echo $row1['answers']; ?></textarea>
                                    </td>
								<td><input  type="hidden" id="ans_id" name="ans_id" value="<?php echo $row1['ans_id']; ?>"></td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td><input type="submit" value="SUBMIT" name="submit" class="sub-butt"/></td>
							</tr>
						</table>
					</form>
					